/**
 * 
 */
package com.shine.icis.blo.imp;

import com.shine.cotrun.sql.QueryParameters;
import com.shine.cotrun.web.comm.ListPage;
import com.shine.icis.blo.IAllotmentConfService;
import com.shine.icis.dao.IAllotmentConfDAO;
import com.shine.icis.exception.ICISException;
import com.shine.icis.hbean.AllotmentConf;

/**
 * 上海配股配置
 * @author zhangxr
 *
 */
public class AllotmentConfService implements IAllotmentConfService {
	
	private IAllotmentConfDAO allotmentConfDAO;

	
	public void setAllotmentConfDAO(IAllotmentConfDAO allotmentConfDAO) {
		this.allotmentConfDAO = allotmentConfDAO;
	}

	
	@Override
	public ListPage<AllotmentConf> getAllotmentConfPage(QueryParameters qp) {
		ListPage<AllotmentConf> acPage = this.allotmentConfDAO.findAllotmentConfPage(qp);
		return acPage;
	}
	
	public void addAllotmentConf(AllotmentConf conf) throws ICISException{
		this.allotmentConfDAO.saveAllotmentConf(conf);
	}
	
	public void modifyAllotmentConf(AllotmentConf conf) throws ICISException{
		this.allotmentConfDAO.updateAllotmentConf(conf);
	}
	
	public void deleteAllotmentConf(Integer confId) throws ICISException{
		this.allotmentConfDAO.deleteAllotmentConf(confId);
	}
}
